<template>
  <div>
    <h1>事件</h1>

    <!-- 绑定自定义事件xxx:实现子组件给父组件传递数据 -->
    <Event2 @xxx="handler3" @click="handler4"></Event2>
  </div>
</template>   

<script setup>
//引入子组件
import Event2 from './Event2.vue';
//事件回调---4
const handler3 = (param1,param2)=>{
    console.log(param1,param2);
}
//事件回调--5
const handler4 = (param1,...param2)=>{
     console.log(param1,param2);
}
</script>

<style scoped>
</style>